//package com.zhuss.core.auth;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//public class WebConfig implements WebMvcConfigurer {
//	
//	@Value("${server.ip}")
//	private String ip;
//	
//	@Value("${server.servlet.context-path}")
//	private String contextPath;
//	
//	@Autowired
//	private FeignAuthenticationInterceptor feignAuthenticationInterceptor;
//
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        //注册自定义拦截器，添加拦截路径和排除拦截路径
//        registry.addInterceptor(feignAuthenticationInterceptor).addPathPatterns("/**").excludePathPatterns("/error"
//        		);
//    }
//    
//	@Override
//	public void addResourceHandlers(ResourceHandlerRegistry registry) {
//		registry.addResourceHandler("/aabFile/**", 
//				"/static/**", "classpath:/static/", "swagger-ui.html", "classpath:/META-INF/resources/", "/webjars/**", "classpath:/META-INF/resources/webjars/"
//				)
//		.addResourceLocations("file:/home/file/aabFile/upload/").addResourceLocations("file:E:/project/aab/upload/").addResourceLocations("file:D:/project/aab/upload/")
//		.addResourceLocations("/static/**").addResourceLocations("classpath:/static/").addResourceLocations("swagger-ui.html").addResourceLocations("classpath:/META-INF/resources/").addResourceLocations("/webjars/**").addResourceLocations("classpath:/META-INF/resources/webjars/");
//		WebMvcConfigurer.super.addResourceHandlers(registry);
//	}
//    
//}
